package com.coupon.service.impl;


import com.coupon.mapper.AdminMapper;
import com.coupon.pojo.Admin;
import com.coupon.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@SuppressWarnings("all")
@Service("adminService")
public class AdminServiceImpl implements AdminService {
    @Resource
    AdminMapper adminMapper;
//    管理员业务方法
    @Override
    public Admin loginAdmin(String phone, String pwd) {


        Admin admin = (Admin) adminMapper.selectByAdmin(phone, pwd);
        return admin;
    }
}
